package com.lt.experiment05.mission03;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment05.mission02
 * @ClassName GoWhereSite
 * @Description to do
 * @date 2021/11/16 11:36
 */
public class GoWhereSite {
    Station s=null;
    public void buyPlaneTicket(){
        s = new PlaneStation();
        s.price=s.price*1.05;
        s.buyTicket();
    };
    public void buyCarTicket(){
        s = new CarStation();
        s.price=s.price*1.03;
        s.buyTicket();
    };
    public void buyTrainTicket(){
        s = new TrainStation();
        s.price=s.price*1.01;
        s.buyTicket();
    };
}
